You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by an...@apache.org on 2015/11/03 10:01:00 UTC
ignite git commit: IGNITE-1200 Fixed regex
Repository: ignite
Updated Branches:
refs/heads/ignite-843-rc1 635bcff25 -> 526f2be32
IGNITE-1200 Fixed regex
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/526f2be3
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/526f2be3
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/526f2be3
Branch: refs/heads/ignite-843-rc1
Commit: 526f2be321936269315249e3f81a1477415de439
Parents: 635bcff
Author: Andrey <an...@gridgain.com>
Authored: Tue Nov 3 16:00:52 2015 +0700
Committer: Andrey <an...@gridgain.com>
Committed: Tue Nov 3 16:00:52 2015 +0700
----------------------------------------------------------------------
modules/control-center-web/src/main/js/helpers/common-utils.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/526f2be3/modules/control-center-web/src/main/js/helpers/common-utils.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/helpers/common-utils.js b/modules/control-center-web/src/main/js/helpers/common-utils.js
index 7ea8885..2f31ea0 100644
--- a/modules/control-center-web/src/main/js/helpers/common-utils.js
+++ b/modules/control-center-web/src/main/js/helpers/common-utils.js
@@ -79,7 +79,7 @@ $commonUtils.hasAtLeastOneProperty = function (obj, props) {
* @returns {string} Valid java name.
*/
$commonUtils.toJavaName = function (prefix, name) {
- var javaName = name ? name.replace(/[^A-Za-z_0-9]+/, '_') : 'dflt';
+ var javaName = name ? name.replace(/[^A-Za-z_0-9]+/g, '_') : 'dflt';
return prefix + javaName.charAt(0).toLocaleUpperCase() + javaName.slice(1);
};