mirror of
https://github.com/github/codeql-action.git
synced 2026-05-04 04:40:09 +00:00
include correct character in message
This commit is contained in:
+3
-2
@@ -1,5 +1,5 @@
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
|
||||
def main():
|
||||
@@ -19,11 +19,12 @@ def main():
|
||||
|
||||
print('Adding fix for js/regex/duplicate-in-character-class')
|
||||
|
||||
repeatedCharacter = re.search("^Character '(.)'", result['message']['text']).group(1)
|
||||
resultPhysicalLocation = result['locations'][0]['physicalLocation']
|
||||
result['fixes'] = [
|
||||
{
|
||||
"description": {
|
||||
"text": "Remove repeated ':' from character class"
|
||||
"text": "Remove repeated '" + repeatedCharacter + "' from character class"
|
||||
},
|
||||
"artifactChanges": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user