Skip to content

Commit e611699

Browse files
committed
Remove unnecessary raw strings
Signed-off-by: Pranav Bedre <[email protected]>
1 parent 431eb7a commit e611699

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

analysis_options.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ linter:
2626
test_types_in_equals: true
2727
unawaited_futures: true
2828
unnecessary_parenthesis: true
29+
unnecessary_raw_strings: true
2930
unnecessary_statements: true
3031
unsafe_html: true
3132
use_raw_strings: true

lib/src/rules/youtube.scrapper.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class YouTubeScrapper {
1414
static WebInfo scrape(HtmlDocument doc, String url) {
1515
try {
1616
final id = getYoutTubeVideoId(url);
17-
var title = RegExp(r'"title":"(.+?)"')
17+
var title = RegExp('"title":"(.+?)"')
1818
.firstMatch(doc.querySelector('html')?.innerHtml ?? '')
1919
?.group(0)
2020
?.split(':')[1]

0 commit comments

Comments
 (0)