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