---
title: "Comment by FC on \"NPM Audit + Jenkins Warnings Next Generation (Custom Groovy Parser)\" | Hashnode"
description: "As someone who is currently implementing NPM audit in our front-end pipelines, this is sooooooo much better than just running npm audit and then linking to the"
url: "https://hashnode.com/posts/npm-audit-jenkins-warnings-next-generation-custom-groovy-parser/5f64e86b67d51d3b5d4796b7/comment/5fcfed4468eee72c15b564d4"
---

[Discussion](https://hashnode.com/posts/npm-audit-jenkins-warnings-next-generation-custom-groovy-parser/5f64e86b67d51d3b5d4796b7)

Comment [NPM Audit + Jenkins Warnings Next Generation (Custom Groovy Parser)](https://hashnode.com/posts/npm-audit-jenkins-warnings-next-generation-custom-groovy-parser/5f64e86b67d51d3b5d4796b7)

[FC](https://hashnode.com/@phase)

[Dec 8, 2020](https://hashnode.com/posts/npm-audit-jenkins-warnings-next-generation-custom-groovy-parser/5f64e86b67d51d3b5d4796b7/comment/5fcfed4468eee72c15b564d4)

As someone who is currently implementing NPM audit in our front-end pipelines, this is sooooooo much better than just running npm audit and then linking to the console, which I was doing earler...real life saver!

Only issue I found (if you can call it an issue) was that I had to escape all the backslashes in the regex.. in other words

```
        def newParser = new io.jenkins.plugins.analysis.warnings.groovy.GroovyParser(
            'npm-audit',
            'NPM Audit Parser',
            '\w+\t(\S+)\t(\w+)\t(\S| )+\t((\S| )+)\t(\S+)\t(\S+)',
            ...
```

\->

```
 def newParser = new io.jenkins.plugins.analysis.warnings.groovy.GroovyParser(
                        'npm-audit',
                        'NPM Audit Parser',
                        '\\w+\\t(\\S+)\\t(\\w+)\\t(\\S| )+\\t((\\S| )+)\\t(\\S+)\\t(\\S+)',
```

[Yurko Tymchuk](https://hashnode.com/@Uko)

[Dec 9, 2020](https://hashnode.com/posts/npm-audit-jenkins-warnings-next-generation-custom-groovy-parser/5f64e86b67d51d3b5d4796b7/comment/5fcfed4468eee72c15b564d4#reply-5fd08dc4fb1375358b507a6c)

Thank you for your kind words! As for escaping characters, it always depends on how many times your string is preprocessed and re-evaluated. So it's awesome that you shared also an option that works for you :)
