Sign in
webkit
/
WebKit
/
56247e8f5d96a3029b7e84701f83e1e2a786fb6e
/
.
/
LayoutTests
/
js
/
script-tests
/
string_replace_regexp.js
blob: 49a74b151991386fe6f2d296aa2b83720bdf8d74 [
file
] [
log
] [
blame
]
description
(
"This will test string.replace with {n, m} regexp patterns."
);
shouldBe
(
'"YY".replace(/Y{1,4}/g,"YYYY")'
,
'"YYYY"'
);
shouldBe
(
'"MM".replace(/M{1,2}/g,"M")'
,
'"M"'
);
shouldBe
(
'"YY".replace(/Y{1,4}/g,"MMMM")'
,
'"MMMM"'
);