guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 0cb873f173e9354f6ed3aa2f66abfa52e8718715
Author: Daniel Khodabakhsh <[email protected]>
AuthorDate: Tue Jun 24 08:37:22 2025 -0700

    gnu: Add node-escape-string-regexp.
    
    * gnu/packages/node-xyz.scm (node-escape-string-regexp): New variable.
    
    Change-Id: I5879164912380f9880313bf45349c42a270f4c07
    Signed-off-by: Andreas Enge <[email protected]>
---
 gnu/packages/node-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 35cfbdf0a6..41dfc5662b 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -347,6 +347,32 @@ a more fine-grained manner by binding the @env{DEBUG} 
variable.")
 @code{localStorage} fallbacks.")
     (license license:expat)))
 
+(define-public node-escape-string-regexp
+  (package
+    (name "node-escape-string-regexp")
+    (version "1.0.5")
+    (source (origin
+      (method git-fetch)
+      (uri (git-reference
+        (url "https://github.com/sindresorhus/escape-string-regexp";)
+        (commit (string-append "v" version))))
+      (file-name (git-file-name name version))
+      (sha256
+        (base32 "0iv0zd2r1mr3w966n023wqghcyaw37w3wl07is45hy74rrnq6z0v"))))
+    (build-system node-build-system)
+    (arguments (list
+      #:tests? #f ; FIXME: Tests require 'xo' and 'ava'.
+      #:phases #~(modify-phases %standard-phases
+        (add-before 'patch-dependencies 'modify-package (lambda _
+          (modify-json
+            (delete-dev-dependencies)))))))
+    (synopsis "Escape RegExp special characters")
+    (description "This library takes a string and escapes the regex characters 
such that\
+ the string can be inserted into a regex expression without triggering any 
special\
+ characters.")
+    (home-page (git-reference-url (origin-uri source)))
+    (license license:expat)))
+
 (define-public node-far
   (package
     (name "node-far")

Reply via email to