* refinements

This commit is contained in:
Reinhard Pointner 2013-03-21 02:43:34 +00:00
parent 6f9f28a51c
commit 5abb244218
2 changed files with 2 additions and 2 deletions

View File

@ -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);
} }

View File

@ -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>