GithubHelp home page GithubHelp logo

Comments (3)

Ephenodrom avatar Ephenodrom commented on August 16, 2024

Hello @modulovalue

The bug is fixed with version 2.3.5. Already updated it on pub.dev.

I now check if the given domain name starts with "*." ( commonly used if you have a wildcard certificate ) or the given string is a subdomain ( the www. case ). if one of these two conditions matches, i will return false.

Regards and thanks for using this package.

from dart-basic-utils.

modulovalue avatar modulovalue commented on August 16, 2024

@Ephenodrom are you sure that it was fixed?

I get

flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════      
flutter: The following RangeError was thrown building HookBuilder(dirty, state: _HookWidgetState#42555):           
flutter: Value not in range: -1      

at

When the exception was thrown, this was the stack:                                                        
flutter: #0      _StringBase.substring (dart:core-patch/string_patch.dart:391:7)                                   
flutter: #1      DomainUtils._getLeftPart (package:basic_utils/src/DomainUtils.dart:240:23)                        
flutter: #2      DomainUtils.parseDomain (package:basic_utils/src/DomainUtils.dart:160:23)                         
flutter: #3      DomainUtils.isDomainName (package:basic_utils/src/DomainUtils.dart:21:12)     

on 2.3.5

for the input "www."

from dart-basic-utils.

Ephenodrom avatar Ephenodrom commented on August 16, 2024

@modulovalue
Ah i see, i was thinking of a domainname that starts with "www." like "www.domain.de".
Fix it now with version 2.3.6 and released it on pub.dev.

If there are any other issues feel free to open an issue :).

Regards

from dart-basic-utils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.