Faker: Random National Flag generator

Created on 18 May 2018  路  9Comments  路  Source: faker-ruby/faker

Feature request: We should be able to generate national flag of random nation.

Feature Request Suggestion

All 9 comments

Nice idea! I will work on a PR for this.

@JonathanWThom you can add this within Nation.
Please check this: https://github.com/stympy/faker/blob/master/doc/nation.md

I was cruising along with this, but ran into an annoying problem - I can't seem to get that leading quote to go away. Ruby seems to not like that unicode escape (even though it renders the emoji), and I have no idea why. Anyone knowledgeable on this able to explain?

screen shot 2018-05-18 at 9 05 30 pm

FWIW puts "\u{1F1E6 1F1EB}" works just fine. So maybe I'm just over thinking it 馃檪

I can't seem to get that leading quote to go away

The closing quote is still there too if you look carefully, only its hidden behind the emoji

Oh! I guess that makes sense. Really threw me off. Thank you!

Hi @JonathanWThom how is the progress on this issue?

@gkunwar Just submitted a PR. Thanks for the bump!

I got hung up writing a regex for unicode back in...May. Figured it out though.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

elangovan-selvaraj picture elangovan-selvaraj  路  6Comments

ggrillone picture ggrillone  路  6Comments

SylarRuby picture SylarRuby  路  3Comments

supiash1 picture supiash1  路  5Comments

mhutter picture mhutter  路  5Comments