Invalid MDList Regex
See original GitHub issueThe “manga” regex for MDList scraping is not working for me. After a bit of debugging, I found out that it is because the href attribute comes before the class attribute in the scraped HTML.
Regex used:
/<a[^>]*class=["'][^"']+manga_title[^"']+["'][^>]*href=["']\/title\/(\d+)\/[^>]*["'][^>]*>/gmi
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
regex - Checking if provided String is a valid list of items
Use a slashy string in Groovy to define the regex in order to use a single backslash with regex escapes. Also, if you...
Read more >joi/API.md at master · hapijs/joi - GitHub
Throws an exception if the prefs object is invalid. The method is provided to perform inputs validation for the any.validate() and any.
Read more >[Solved]-Angular Reactive Forms pattern validation
Coding example for the question Angular Reactive Forms pattern validation: Invalid regular expression-angular.js.
Read more >Code coverage report for markdown-parser/plugin/lists.js
preventDefault(); break; } }; MDLists.prototype. ... getListRegex(); this. ... void 0; var pattern = void 0; var space = 0; if (regex.test(line.trim())) ...
Read more >Adding KivyMD ListItem to MDList produces blank...anycodings
Questions : Adding KivyMD ListItem to MDList produces blank members after the first member. BoxLayout: canvas.before: Color: rgba: 0, 0, 0, 1 Line:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Alright I think I have found the problem. The program assumes the website is using the “Detailed” setting for viewing the list, but since you are using the “Simple List” setting, it not only changes the attribute order, but it also changes the number of manga per page. This isn’t a problem when an agent is not in use (since the program naively uses default settings), but since you are using an account with custom settings, the problems arise.
A temporary fix is to change the settings on the agent account to use a the default “Detailed List” setting. However, after I looked at the code for this object, I’ve realized it is especially broken, so I’m going to redo it within the next two days for the next version. As for the regex elsewhere, I will redo all of it after the release of Mangadex v5 (or sooner).
Thank you.
I can’t believe I missed that! Thanks for catching it. Once I changed from simple view to detailed, it worked. Good luck with Mangadex v5!