* refinements
This commit is contained in:
parent
6f9f28a51c
commit
5abb244218
|
@ -144,7 +144,7 @@ String.metaClass.replaceTrailingBrackets = { replacement = "" -> replaceAll(/\s*
|
|||
*/
|
||||
String.metaClass.replacePart = { replacement = "" ->
|
||||
// handle '(n)', '(Part n)' and ': Part n' like syntax
|
||||
for (pattern in [/\s*[(](\w+)[)]$/, /(?i)\W*Part (\w+)\W*$/]) {
|
||||
for (pattern in [/\s*[(](\w+)[)]$/, /(?i)\W+Part (\w+)\W*$/]) {
|
||||
if ((delegate =~ pattern).find()) {
|
||||
return replaceAll(pattern, replacement);
|
||||
}
|
||||
|
|
|
@ -200,7 +200,7 @@
|
|||
$('#review .user').text(review.user)
|
||||
$('#review .date').text(review.date)
|
||||
$('#review .text').text(review.text)
|
||||
if (review.text.length() > 0) { $('#review').show() }
|
||||
if (review.text.length > 0) { $('#review').show() }
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue