[Pkg-javascript-commits] [less.js] 03/88: Adding capture group test case
Jonas Smedegaard
dr at jones.dk
Mon Oct 26 23:22:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag v1.7.0
in repository less.js.
commit 170042fb02532632a05759f00c9851e0a882dea3
Author: Jake Bellacera <hi at jakebellacera.com>
Date: Fri Aug 23 16:26:39 2013 -0700
Adding capture group test case
---
test/css/functions.css | 1 +
test/less/functions.less | 1 +
2 files changed, 2 insertions(+)
diff --git a/test/css/functions.css b/test/css/functions.css
index 499b614..3e11d94 100644
--- a/test/css/functions.css
+++ b/test/css/functions.css
@@ -9,6 +9,7 @@
#built-in {
escaped: -Some::weird(#thing, y);
gsub: "Hello, World!";
+ gsub-captured: "This is a new string.";
lighten: #ffcccc;
darken: #330000;
saturate: #203c31;
diff --git a/test/less/functions.less b/test/less/functions.less
index d84ae6b..cf81dc5 100644
--- a/test/less/functions.less
+++ b/test/less/functions.less
@@ -13,6 +13,7 @@
@r: 32;
escaped: e("-Some::weird(#thing, y)");
gsub: gsub("Hello, Foo.", "Foo\.$", "World!");
+ gsub-captured: gsub("This is a string.", "(string)\.$", "new $1.");
lighten: lighten(#ff0000, 40%);
darken: darken(#ff0000, 40%);
saturate: saturate(#29332f, 20%);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git
More information about the Pkg-javascript-commits
mailing list