You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2013/02/25 13:09:46 UTC

[1/2] git commit: Simplify a regex: [a-zA-Z0-9_] == \w

Simplify a regex: [a-zA-Z0-9_] == \w


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/7c39e36e
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/7c39e36e
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/7c39e36e

Branch: refs/heads/master
Commit: 7c39e36ee3c841e80b310249ea6e7271b4b98112
Parents: 80735f8
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Fri Feb 22 22:44:05 2013 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Mon Feb 25 14:06:21 2013 +0200

----------------------------------------------------------------------
 .../wicket/ajax/res/js/wicket-ajax-jquery.js       |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/7c39e36e/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
index 93175d0..e2861a9 100644
--- a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
+++ b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
@@ -1031,7 +1031,7 @@
 		processEvaluation: function (context, node) {
 
 			// used to match evaluation scripts which manually call FunctionsExecuter's notify() when ready
-			var scriptWithIdentifierR = new RegExp("^\\(function\\(\\)\\{([a-zA-Z_][a-zA-Z0-9_]*)\\|((.|\\n)*)?\\}\\)\\(\\);$");
+			var scriptWithIdentifierR = new RegExp("^\\(function\\(\\)\\{([a-zA-Z_]\\w*)\\|((.|\\n)*)?\\}\\)\\(\\);$");
 
 			context.steps.push(function (notify) {
 				// get the javascript body